count digits in number